﻿using System.Collections.Generic;


namespace RStudio.Elevator
{
    /// <summary>
    /// 数据|电梯参数
    /// </summary>
    /// <remarks>
    /// 移动速率？楼层数据？等等
    /// </remarks>
    public class ElevatorDetail
    {
        /// <summary>
        /// 唯一性标签
        /// </summary>
        public string Name;

        /// <summary>
        /// 电梯移动速度
        /// </summary>
        public float moveSpeed;

        /// <summary>
        /// 电梯开关门时间
        /// </summary>
        public float doorOpenDuration;


        public ElevatorDetail(string name)
        {
            this.Name = name;
            this.moveSpeed = 2f;
            this.doorOpenDuration = 2f;
        }

        public ElevatorDetail(string name, float moveSpeed, float doorOpenDuration) : this(name)
        {
            this.moveSpeed = moveSpeed;
            this.doorOpenDuration = doorOpenDuration;
        }
    }
}
